import 'babel-polyfill'
import './lottery/timer.js'
import './lottery/base.js'
import './lottery/calculate.js'
import './lottery/interface.js'
import $ from 'jquery'

/**
 * 深拷贝
 * @param target
 * @param source
 */
const copyProperties=function (target,source) {
    for (let key of Reflect.ownKeys(source)){
        if (key!=='constructor'&&key!='prototype'&&key!=='name'){
            let desc=Object.getOwnPropertyDescriptor(source,key);
            Object.defineProperty(target,key,desc);
        }
    }
}

const mix=function (...mixins) {
    class Min{}
    for (let mixin of mixins){
        copyProperties(Min,mixin);

    }
}